package wsi.gui.resolve.task;

import java.io.File;

import javafx.concurrent.Task;
import wsi.exp.ExpFolderController;
import wsi.exp.exp5.Exp5Judger;

public class AutoJudgeTask extends Task<Void> {

	@Override
	protected Void call() throws Exception {
		updateMessage("Judging automatically...");

		File dir = ExpFolderController.shared().getFolderForExp5();
		Exp5Judger judger = new Exp5Judger(dir);

		judger.judge();

		updateMessage("Completed.");

		return null;
	}

}
